package com.chuan.it_market.controller.seller_controller;

import com.chuan.it_market.controller.BaseController;
import com.chuan.it_market.dao.UserOrderDao;
import com.chuan.it_market.pojo.dto.ResponseDTO;
import com.chuan.it_market.service.OrderService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("statistics")
public class StaticticsController extends BaseController {
    @Resource
    OrderService orderService;
    @RequestMapping("totalPrice")
    @ResponseBody
    ResponseDTO totalPrice(){
        return orderService.Statistics(getUsreId());
    }
}
